#include <iostream>
#include <stdio.h>
// #define CATCH_CONFIG_MAIN
// #include <catch.h>
#include <math.h>
#include <batchnorm.h>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;

bool cmp(float x, float y){
    if(fabs(x - y) < 0.01){
        return true;
    }
    else{
        return false;
    }
}

float a[10000]={1.679163
,1.002834
,0.285670
,0.230228
,1.111988
,1.553869
,1.990657
,1.366213
,1.835850
,1.886312
,1.251425
,1.173800
,1.669970
,1.567978
,1.250271
,1.424881
,1.866125
,2.015401
,1.936531
,1.520906
,1.376176
,0.845718
,0.541294
,0.771954
,1.012610
,1.574611
,2.058630
,2.317571
,1.183856
,-0.077423
,-0.863310
,-0.319721
,0.372480
,0.723764
,1.207072
,1.106234
,1.068107
,0.450602
,-0.027024
,0.457528
,0.440815
,0.146922
,0.123510
,0.299915
,0.394937
,0.631386
,0.448220
,0.390568
,0.113980
,-0.184129
,-0.121664
,-0.007941
,0.304816
,0.551489
,0.282266
,0.292031
,1.141622
,0.968353
,0.867017
,0.771522
,0.886691
,0.694362
,0.698600
,0.639194
,0.511674
,0.461565
,-0.484733
,-0.778205
,-0.603916
,-0.637405
,-0.130065
,0.330426
,0.142959
,1.066458
,0.758311
,0.146795
,0.493912
,0.466324
,1.167657
,1.058541
,-0.581180
,0.463288
,1.773377
,1.992764
,0.559760
,-0.202017
,-0.043512
,0.485193
,-1.071486
,-0.563285
,0.669035
,0.756220
,0.669621
,-0.337977
,-0.721937
,0.011275
,-0.452637
,-1.177584
,-0.594378
,-0.153103
,0.085453
,-0.265790
,-0.962504
,-0.724926
,-0.662274
,-1.045574
,-0.751552
,-0.951648
,-0.486056
,-0.571984
,-0.839911
,-1.019507
,-0.733385
,-0.781885
,-0.685373
,-1.127869
,-0.069025
,-0.002923
,-0.099576
,-0.187464
,-0.140267
,-0.383514
,-0.140910
,-0.306297
,0.197056
,0.824940
,0.402791
,0.248505
,-0.257857
,0.316587
,0.554994
,0.511987
,0.513821
,0.482766
,0.455946
,-0.008286
,-0.911076
,0.170514
,1.145865
,0.682389
,-0.421347
,-1.055232
,-1.178123
,-1.229854
,-1.228370
,-0.841015
,-0.102490
,0.492770
,-0.334178
,-0.524773
,-0.264214
,-0.640814
,-0.147328
,-0.706518
,-0.217690
,0.861321
,0.999349
,0.603308
,-0.044446
,-0.090152
,0.526555
,-0.094685
,-1.104167
,0.027928
,1.520058
,2.181342
,1.909821
,0.891069
,0.610318
,0.584753
,-0.178536
,-0.791220
,0.450405
,1.787971
,2.482818
,1.973843
,0.367301
,0.767245
,1.033173
,0.593833
,-0.046211
,-0.011975
,0.459497
,0.488980
,0.405647
,0.703503
,0.475258
,0.117680
,-0.159408
,-0.518496
,-0.422248
,-0.449191
,-0.521031
,-1.154717
,-1.280468
,-1.401675
,-0.385285
,-0.137832
,0.071163
,-0.492286
,0.710547
,-0.490263
,-0.559338
,-0.142182
,0.516330
,0.716009
,0.054334
,0.000739
,0.793664
,0.324208
,0.001939
,0.130897
,0.275442
,-0.048492
,-0.388656
,-0.199997
,0.413550
,0.407631
,0.193191
,-0.673509
,-0.563453
,-1.040665
,-1.167810
,0.324182
,0.110504
,0.650910
,0.871141
,0.322278
,-0.706469
,-1.008250
,-0.673112
,0.290812
,0.276067
,0.160302
,0.344206
,0.080935
,-0.842130
,-0.940599
,-0.476626
,0.116260
,0.151130
,-0.646346
,-1.111240
,-0.953571
,-0.580405
,-0.938426
,-0.805491
,-0.435146
,-0.706049
,-1.152607
,-0.657386
,0.027079
,-0.109781
,-0.850650
,-0.753581
,-0.647130
,0.337897
,0.224526
,0.060536
,-0.308976
,-0.405757
,0.006778
,0.087161
,-0.027524
,-0.216387
,0.371808
,1.051399
,0.915568
,0.284536
,-0.036769
,-0.604737
,-0.453314
,0.009447
,0.333203
,0.679948
,1.037910
,0.524736
,-0.105026
,-0.639338
,-0.827722
,-0.487761
,-0.369999
,-0.145995
,1.097226
,0.613858
,-0.315677
,-1.110744
,-1.142588
,-0.937656
,-0.977813
,-1.264784
,-0.937473
,-0.644320
,-0.945752
,-0.807837
,-1.027729
,-1.357105
,-1.487791
,-1.116740
,-1.459608
,-0.583634
,-0.759591
,-0.620493
,-0.407337
,-0.955648
,-0.949920
,-0.465715
,0.060793
,0.048963
,0.340871
,-0.169902
,-0.460459
,0.783265
,0.871875
,0.485822
,0.540586
,0.394740
,0.275897
,-0.099645
,-0.580101
,0.069150
,-0.093239
,-0.341001
,-0.047911
,0.214587
,-0.354339
,-0.677744
,-0.671445
,0.495744
,0.998000
,1.032020
,0.705696
,-0.112624
,-0.076551
,0.341080
,0.167777
,0.498689
,0.846773
,1.161913
,0.755972
,-0.304910
,-0.748748
,-0.751473
,-0.002592
,0.107788
,0.424471
,0.634334
,-0.513114
,-0.652415
,-0.720587
,-0.980225
,-0.373331
,-0.345266
,-0.165301
,0.218260
,-0.059247
,-0.133579
,0.185885
,-0.312157
,-0.137495
,-0.420353
,-0.637888
,-0.117939
,0.483183
,0.307218
,0.266721
,0.108110
,-0.192340
,-0.895775
,-0.754231
,-0.390026
,-0.357828
,0.207414
,-0.088250
,-0.737886
,-0.221156
,-0.804059
,-0.958155
,-0.969791
,-0.218635
,0.328015
,-0.229890
,-0.292708
,-0.266775
,-1.217557
,-0.690003
,0.413290
,0.520192
,0.615004
,0.147844
,0.083653
,-0.738886
,-0.839928
,-1.402179
,-0.603166
,0.464467
,0.683074
,-0.010819
,-0.417536
,-0.653762
,-0.600514
,-1.285338
,-1.815418
,-0.828343
,0.538642
,0.741425
,-0.038027
,-0.543292
,-0.135267
,-0.654405
,-1.795014
,-2.299246
,-0.437562
,0.218831
,-0.292468
,-0.612205
,-0.362708
,-0.285819
,-0.841052
,-1.625042
,-1.707523
,-1.105730
,-0.845809
,-1.281518
,-0.909005
,-0.471450
,0.007290
,-0.886097
,-1.061792
,-0.930655
,-1.048517
,-1.078606
,-0.895956
,-0.851647
,-0.464084
,-0.125180
,-0.229794
,-0.550946
,-0.922541
,-0.951165
,-0.517930
,-0.685240
,-0.109588
,0.265976
,-0.131167
,-0.800074
,-1.078069
,-0.870193
,-0.325921
,-0.770950
,-0.625653
,-0.577700
,-0.548779
,-0.448167
,-0.302278
,-0.223220
,-0.282510
,-0.989886
,-1.973475
,-1.392213
,-0.527943
,-0.301974
,-0.419514
,0.243212
,-0.275099
,-0.837235
,-1.700104
,-1.842797
,-0.742156
,0.380447
,1.938798
,1.667993
,-0.040735
,-0.520128
,-0.538419
,-0.597883
,-0.503877
,0.737869
,1.081459
,0.974096
,0.290515
,-0.096680
,0.164908
,-0.180817
,-0.090164
,-0.850340
,-0.164116
,0.044030
,0.832497
,0.224090
,-0.495542
,-0.496992
,-0.887452
,-1.038372
,-0.406406
,-0.272112
,0.565648
,0.215853
,-0.414783
,-1.158901
,-1.540305
,-0.725445
,-0.370034
,-0.142963
,-0.251727
,-0.392249
,-0.760430
,-1.033112
,-1.184778
,-0.850514
,-0.479218
,-0.107892
,0.178392
,0.079143
,0.048585
,-0.378148
,-0.086218
,0.260974
,-0.268087
,-0.209215
,-0.398923
,0.057497
,0.060755
,0.041562
,-0.513739
,-0.138901
,0.244952
,0.765607
,-0.048621
,0.378252
,0.232547
,-0.025379
,-0.169368
,0.256120
,0.301103
,0.476911
,-0.187848
,0.384333
,0.643174
,0.800718
,-0.002527
,0.282167
,-0.405193
,-0.657486
,-0.391021
,-0.482625
,0.501950
,0.871440
,0.305505
,0.311410
,0.274802
,0.150420
,-0.280919
,-0.336981
,-0.196432
,0.989431
,1.755457
,1.708360
,1.374049
,0.280984
,-0.258950
,-0.387087
,0.092331
,0.819460
,1.437825
,1.470799
,0.283079
,-0.037602
,0.490584
,0.542264
,0.174083
,0.137311
,-0.627462
,-0.199970
,-0.174028
,-0.085182
,-0.062778
,-0.406555
,-0.390553
,-0.183440
,-0.036767
,0.409935
,0.885276
,0.981382
,-0.096542
,0.110786
,-0.196566
,-0.094536
,0.206667
,0.564022
,0.437971
,-0.017108
,-0.117079
,-0.585930
,-0.404746
,-0.049072
,0.284494
,0.012288
,-0.064632
,1.268793
,0.046355
,0.141593
,0.566557
,0.520934
,-0.078197
,0.066811
,0.798700
,1.489179
,0.289719
,0.355345
,0.577823
,0.056039
,-0.227399
,0.028814
,-0.092209
,0.026523
,0.197988
,-0.007374
,-0.087374
,-0.690917
,-0.994813
,-0.640191
,0.394863
,0.756025
,-0.158691
,-0.759490
,-0.654853
,-0.309402
,0.682203
,1.968606
,1.591119
,1.045984
,-0.332092
,-0.482145
,-0.041106
,1.065477
,2.279371
,1.941505
,0.910716
,0.406835
,0.176353
,-0.233956
,0.712507
,0.720404
,1.134181
,0.114844
,0.112504
,0.193254
,1.084966
,0.393454
,0.611520
,0.130859
,0.962253
,0.753117
,0.256981
,-0.289309
,1.057596
,0.503554
,0.963502
,0.324059
,0.604832
,0.004160
,-0.047060
,0.136233
,0.758283
,0.481637
,0.563115
,-0.599073
,-0.474423
,-0.021897
,-0.377156
,-0.006198
,0.506523
,0.599453
,0.630917
,-0.074439
,-0.037171
,0.641934
,0.274645
,0.269320
,-0.090809
,0.173135
,0.721098
,1.487277
,1.292162
,0.759485
,0.250428
,0.513508
,-0.000178
,0.591067
,1.226248
,1.437637
,0.767726
,0.567791
,-0.363075
,-0.036052
,0.843395
,1.120797
,1.346539
,0.809819
,0.768727
,0.219778
,-0.862602
,-0.763188
,1.190620
,0.845449
,0.322048
,0.590559
,1.155663
,0.921708
,0.427363
,-0.166542
,0.049111
,-0.135223
,-0.832927
,-0.284251
,0.127282
,-0.155547
,-0.903360
,-0.355208
,-0.206090
,-0.461279
,-0.868324
,-1.260177
,-0.703442
,0.180091
,0.097145
,0.490619
,-0.850081
,-0.664108
,-0.600143
,-0.231228
,-0.039993
,-0.064782
,0.046481
,-0.225285
,-0.851904
,-1.199822
,-0.567646
,-0.050151
,-0.192484
,0.195394
,0.383296
,-0.314484
,-0.426070
,-0.540757
,-0.310662
,-0.090458
,0.225132
,0.233053
,0.194764
,-0.136665
,0.769545
,0.748874
,0.659212
,0.400258
,0.025479
,-0.178927
,-0.615084
,-0.355082
,0.965018
,0.718576
,0.693234
,-0.427483
,-0.823158
,-0.693839
,-0.427874
,-0.419399
,-0.446978
,-0.467372
,-0.486884
,-0.723254
,-0.470663
,0.261319
,1.026854
,1.431929
,0.128813
,-0.062749
,0.319952
,0.852198
,1.089316
,2.429275
,3.530024
,2.779452
,0.755806
,0.782316
,0.971289
,1.686580
,2.518813
,2.510266
,2.312993
,0.991867
,1.107510
,0.272673
,0.465974
,1.553326
,1.928326
,1.171620
,0.067975
,-0.030788
,1.052252
,0.470207
,-0.079280
,0.225983
,0.547430
,0.407197
,0.372167
,0.518533
,1.004879
,0.877917
,0.158069
,-0.241422
,-0.114479
,0.352467
,1.067964
,0.978348
,0.723944
,0.196975
,0.155122
,-0.656982
,-0.827808
,0.705593
,1.468293
,0.973861
,-0.515478
,-0.056996
,-0.193571
,0.297017
,0.949508
,1.754053
,1.978026
,0.904550
,0.353584
,0.250456
,0.603011
,-0.151806
,-0.149713
,0.339758
,0.460440
,0.413981
,0.072614
,-0.557204
,-0.450349
,0.163160
,0.300237
,0.044548
,-0.165315
,-0.383138
,-0.743000
,-0.812904
,-0.856841
,-0.222014
,0.418317
,0.924753
,0.634284
,-0.106098
,-0.910151
,-1.171979
,-1.595282
,-0.713108
,0.773966
,1.601048
,0.749079
,0.248944
,-0.817963
,-1.028115
,-1.164068
,-0.504548
,-0.052396
,0.065566
,0.094897
,0.211915
,-0.722823
,-1.263393
,-1.086798
,-0.823370
,-0.884074
,-0.142407
,0.690396
,0.236352
,-0.221242
,-0.471737
,-0.668990
,-0.938732
,-1.014086
,-0.194863
,0.451121
,0.215357
,0.517231
,0.179852
,-0.284208
,-0.066440
,-0.227533
,-0.502290
,-0.037305
,0.066863
,-0.258789
,-0.883149
,-1.512728
,-1.388198
,-0.819584
,-0.803530
,-0.990523
,-1.138671
,-0.026628
,-0.451261
,-0.712832
,-0.470931
,-0.505005
,-0.758627
,-0.883917
,-0.523881
,-0.155515
,-0.327195
,-0.694080
,-0.627174
,-1.347755
,-1.840912
,-1.753414
,-1.012092
,-0.650797
,-0.880286
,-1.171649
,-1.352145
,-2.335670
,-2.327819
,-2.014169
,-0.965949
,-0.487313
,-0.938600
,-1.470488
,-1.857912
,-2.047223
,-1.430167
,-1.147004
,-0.312199
,-0.531225
,-0.884617
,-1.106979
,-0.906757
,-1.230542
,-0.927767
,-0.868352
,-0.575353
,-0.530859
,-0.417927
,-0.270192
,-0.965503
,-1.471395
,-1.556696
,-1.179574
,-0.973830
,-0.443790
,-0.278792
,-0.855959
,-1.257719
,-0.794494
,-0.974333
,-0.463439
,-0.210141
,0.194425
,0.400853
,1.230701
,0.898812
,0.499319
,0.226325
,-0.430846
,-0.680802
,-0.147728
,-0.719864
,0.259681
,1.140294
,0.731264
,0.119367
,-0.583910
,-0.581552
,0.711862
,0.116825
,-0.130299
,0.311667
,0.893842
,1.458638
,1.185391
,0.970277
,1.003750
,0.516093
,-0.225810
,-0.508255
,0.505922
,1.207451
,1.190013
,1.568709
,0.943716
,0.798551
,0.187776
,-0.082608
,0.028323
,0.846555
,1.104946
,1.613855
,0.477451
,1.009779
,1.260551
,0.677653
,0.486191
,0.436723
,0.426291
,0.970980
,0.916166
,1.062604
,1.351478
,1.686837
,1.083093
,0.270330
,-0.273823
,0.259805
,1.037161
,1.062518
,0.781208
,1.091739
,-0.143803
,-0.821956
,-0.566046
,-0.113970};


float c[20000]={2.541198
,1.047617
,-0.536142
,-0.658579
,1.288670
,2.264502
,3.229090
,1.850090
,2.887220
,2.998658
,1.596597
,1.425172
,2.520897
,2.295661
,1.594049
,1.979650
,2.954077
,3.283735
,3.109559
,2.191709
,1.872093
,0.700647
,0.028368
,0.537750
,1.069207
,2.310310
,3.379200
,3.951034
,1.447380
,-1.337984
,-3.073509
,-1.873065
,-0.344435
,0.431329
,1.498650
,1.275963
,1.191764
,-0.171912
,-1.226685
,-0.156616
,-0.193526
,-0.842548
,-0.894250
,-0.504685
,-0.294842
,0.227325
,-0.177173
,-0.304489
,-0.915297
,-1.573630
,-1.435684
,-1.184543
,-0.493860
,0.050882
,-0.543659
,-0.522095
,1.354113
,0.971471
,0.747684
,0.536795
,0.791132
,0.366398
,0.375757
,0.244568
,1.236762
,1.115172
,-1.181020
,-1.893131
,-1.470218
,-1.551480
,-0.320418
,0.796964
,0.342074
,2.582946
,1.835227
,0.351382
,1.193662
,1.126720
,2.828506
,2.563736
,-1.415048
,1.119353
,4.298286
,4.830628
,1.353444
,-0.495011
,-0.110398
,1.172507
,-2.604778
,-1.371626
,1.618598
,1.830153
,1.620020
,-0.824917
,-1.756596
,0.022545
,-1.103138
,-2.862223
,-1.447074
,-0.376319
,0.202536
,-0.649756
,-2.340331
,-1.763848
,-1.611824
,-2.541902
,-1.828457
,-2.313989
,-1.184231
,-1.392734
,-2.042859
,-2.478650
,-1.784375
,-1.902059
,-1.667873
,-2.741590
,-0.172305
,-0.011907
,-0.246438
,-0.459697
,-0.345173
,-0.935413
,-0.346732
,-0.748045
,0.473341
,1.996903
,0.972557
,0.598182
,-0.789007
,0.460902
,0.979642
,0.886064
,0.890054
,0.822482
,0.764126
,-0.245977
,-2.210318
,0.143067
,2.265292
,1.256834
,-1.144738
,-2.523983
,-2.791374
,-2.903935
,-2.900705
,-2.057875
,-0.450952
,0.844251
,-0.955071
,-1.369778
,-0.802840
,-1.622268
,-0.548511
,-1.765230
,-0.701608
,1.646165
,1.946495
,1.084766
,-0.324655
,-0.424104
,0.917761
,-0.433968
,-2.630458
,-0.167179
,3.079484
,4.518343
,3.927552
,1.710893
,1.100019
,1.044394
,-0.616415
,-1.949530
,0.752070
,3.662425
,5.174313
,4.066855
,0.571248
,1.441468
,2.020092
,1.064149
,-0.328496
,-0.254002
,0.771853
,0.836003
,0.654683
,1.302776
,0.806147
,0.028107
,-0.574796
,-1.356120
,-1.146698
,-1.205323
,-0.423338
,-1.951657
,-2.254941
,-2.547266
,-0.095945
,0.500859
,1.004912
,-0.354010
,2.546973
,-0.349131
,-0.515725
,0.490367
,2.078562
,2.560144
,0.964324
,0.835064
,2.747433
,1.615204
,0.837958
,1.148976
,1.497589
,0.716329
,-0.104077
,0.350929
,1.830677
,1.816402
,1.299218
,-0.791082
,-0.525651
,-1.676585
,-1.983233
,1.615140
,1.099795
,2.403140
,2.934292
,1.610548
,-0.870576
,-1.598408
,-0.790124
,1.534659
,1.499096
,1.219896
,1.663433
,1.028478
,-1.197762
,-1.435248
,-0.316242
,1.113675
,1.197775
,-0.725571
,-1.846798
,-1.466533
,-0.566534
,-1.430007
,-1.109396
,-0.216202
,-0.869563
,-1.946567
,-0.752198
,0.898590
,0.568512
,-1.218309
,-0.984200
,-0.727462
,1.492807
,1.252859
,0.905777
,0.123708
,-0.081127
,0.791998
,0.962127
,0.719399
,0.319671
,1.564580
,3.002925
,2.715441
,1.379869
,0.699831
,-0.502266
,-0.181780
,0.797647
,1.482872
,2.216754
,2.974377
,1.888250
,0.555367
,-0.575498
,-0.974211
,-0.254688
,-0.005447
,0.468657
,3.099918
,2.076876
,0.109525
,-1.573223
,-1.640621
,-1.206884
,-1.291877
,-1.899247
,-1.206498
,-0.586042
,-1.224020
,-0.932124
,-1.397522
,-2.094643
,-2.371239
,-1.585914
,-2.311590
,-0.457600
,-0.830013
,-0.535613
,-0.084472
,-1.244965
,-1.232842
,-0.208027
,0.906320
,0.881283
,1.499102
,0.418057
,-0.196902
,2.435423
,2.622965
,1.805888
,1.921797
,1.613116
,1.361585
,0.566755
,-0.450124
,0.248303
,-0.093736
,-0.615599
,0.001737
,0.554638
,-0.643692
,-1.324882
,-1.311615
,1.146840
,2.204744
,2.276401
,1.589062
,-0.134569
,-0.058586
,0.821070
,0.456043
,1.153042
,1.886214
,2.549994
,1.694960
,-0.539581
,-1.474438
,-1.480178
,0.097193
,0.329688
,0.996716
,1.438752
,-0.978121
,-1.271530
,-1.415122
,-1.961999
,-0.683696
,-0.624583
,-0.245521
,0.562375
,-0.022141
,-0.178705
,0.494182
,-0.554845
,-0.186953
,-0.782739
,-1.240932
,-0.145764
,1.120383
,0.749747
,0.664448
,0.330365
,-0.302473
,-1.784121
,-1.485987
,-0.718860
,-0.651042
,0.539530
,-0.083229
,-1.451559
,-0.363170
,-1.590939
,-1.915513
,-1.940021
,-0.357859
,0.793552
,-0.381566
,-0.513879
,-0.459257
,-1.804581
,-0.382816
,2.590576
,2.878677
,3.134198
,1.875195
,1.702198
,-0.514555
,-0.786865
,-2.302140
,-0.148787
,2.728497
,3.317647
,1.447595
,0.351488
,-0.285145
,-0.141640
,-1.987252
,-3.415823
,-0.755643
,2.928401
,3.474904
,1.374271
,0.012574
,1.112206
,-0.286878
,-3.360834
,-4.719748
,0.297517
,2.066506
,0.688548
,-0.173147
,0.499251
,0.706466
,-0.789895
,-2.902758
,-3.125047
,-1.503206
,-0.802713
,-1.976955
,-0.973029
,0.206189
,1.496400
,-0.911291
,-1.384792
,-1.031377
,-1.349015
,-1.430105
,-0.937861
,-0.818448
,0.226039
,1.139392
,0.857456
,-0.008053
,-1.009508
,-1.086651
,0.080925
,-0.369978
,1.181412
,2.193563
,1.123255
,-0.679457
,-1.428658
,-0.868430
,-0.270617
,-1.248243
,-0.929060
,-0.823718
,-0.760184
,-0.539163
,-0.218678
,-0.045005
,-0.175252
,-1.729195
,-3.889914
,-2.613016
,-0.714412
,-0.218010
,-0.476220
,0.979639
,-0.158973
,-1.393856
,-3.289382
,-3.602845
,-1.184990
,1.281111
,4.704452
,4.109554
,0.355871
,-0.697246
,-0.737426
,-0.868055
,-0.661544
,2.066285
,2.821074
,2.585222
,1.083552
,0.232972
,0.807623
,0.048143
,0.247287
,-1.422646
,0.084831
,0.542080
,2.274161
,0.937632
,-0.643235
,-0.646420
,-1.504171
,-1.835709
,-0.447424
,-0.152410
,1.687956
,0.919536
,-0.465826
,-2.100482
,-2.938339
,-1.148279
,-0.367522
,0.131299
,-0.107630
,-0.416323
,-1.225133
,-1.824153
,-2.157328
,-1.423027
,-0.607374
,0.208342
,0.184232
,-0.056104
,-0.130101
,-1.163457
,-0.456535
,0.384208
,-0.896941
,-0.754379
,-1.213766
,-0.108521
,-0.100632
,-0.147110
,-1.491798
,-0.584110
,0.345409
,1.606203
,-0.365492
,0.668204
,0.315372
,-0.309209
,-0.657886
,0.372454
,0.481384
,0.907111
,-0.702637
,0.682928
,1.309726
,1.691225
,-0.253872
,0.435528
,-1.228950
,-1.839889
,-1.194632
,-1.416455
,0.967744
,1.862483
,0.492043
,0.506343
,0.417694
,0.116495
,-0.928014
,-1.063771
,-0.723424
,2.148203
,4.003176
,3.889128
,3.079576
,0.432664
,-0.874815
,-1.185104
,-0.024169
,1.736611
,3.234014
,3.313862
,0.437738
,-0.338807
,0.940221
,1.065368
,0.173797
,0.084752
,-1.767186
,-0.731992
,-0.669171
,-0.454027
,-0.732754
,-1.505899
,-1.469912
,-1.004119
,-0.674254
,0.330368
,1.399400
,1.615541
,-0.808687
,-0.342411
,-1.033639
,-0.804176
,-0.126777
,0.676907
,0.393421
,-0.630042
,-0.854874
,-1.909309
,-1.501832
,-0.701929
,0.048255
,-0.563931
,-0.736923
,2.261921
,-0.487315
,-0.273128
,0.682608
,0.580003
,-0.767429
,-0.441310
,1.204692
,2.757563
,0.060004
,0.207597
,0.707945
,-0.465536
,-1.102982
,-0.526763
,-0.798942
,-0.531917
,-0.146295
,-0.608151
,-0.788068
,-2.145422
,-2.828878
,-2.031342
,0.296471
,1.108718
,-0.948459
,-2.299642
,-2.064317
,-1.287404
,0.942693
,3.835786
,2.986825
,1.760829
,-1.338434
,-1.675899
,-0.684014
,1.804667
,4.534688
,3.774836
,1.456615
,0.323396
,-0.076250
,-1.100116
,1.261647
,1.281352
,2.313874
,-0.229734
,-0.235574
,-0.034076
,2.191065
,0.465496
,1.009648
,-0.189773
,1.884851
,1.362983
,0.124947
,-1.238241
,2.122767
,0.740234
,1.887968
,0.292331
,0.992958
,-0.505930
,-0.633743
,-0.176362
,1.375872
,0.685543
,0.888861
,-2.011212
,-1.700166
,-0.570952
,-1.457450
,-0.531779
,0.747643
,0.979537
,1.058051
,-0.702064
,-0.609066
,1.085541
,0.169025
,0.155736
,-0.742913
,-0.084279
,1.283084
,3.194973
,2.708091
,1.378873
,0.108594
,0.765073
,-0.516757
,0.958611
,2.543612
,3.071104
,1.399438
,0.900528
,-1.422313
,-0.606275
,1.588258
,2.280475
,2.843780
,1.504475
,1.401935
,0.032111
,-2.668810
,-2.420737
,2.625409
,1.809975
,0.573492
,1.207824
,2.542825
,1.990131
,0.822288
,-0.580754
,-0.071293
,-0.506764
,-2.155022
,-0.858828
,0.113378
,-0.554779
,-2.321414
,-1.026459
,-0.674182
,-1.277041
,-2.238645
,-3.164357
,-1.849126
,0.238134
,0.042182
,0.971724
,-2.195546
,-1.756204
,-1.605092
,-0.733569
,-0.281793
,-0.340355
,-0.077508
,-0.719528
,-2.199852
,-3.021776
,-1.528321
,-0.305791
,-0.642039
,0.274285
,0.718184
,-0.930251
,-1.193862
,-1.464800
,-0.921222
,-0.401012
,0.344537
,0.363250
,0.272797
,-0.510173
,1.630659
,1.581827
,1.370010
,0.758255
,-0.127122
,-0.610012
,-1.640390
,-1.026161
,2.092445
,1.510251
,1.450382
,-1.197200
,-2.131944
,-1.826440
,-1.198125
,-1.178102
,-2.149572
,-2.190025
,-2.228729
,-2.697591
,-2.196553
,-0.744594
,0.773918
,1.577424
,-1.007433
,-1.387415
,-0.628291
,0.427470
,0.897819
,3.555758
,5.739201
,4.250368
,0.236269
,0.288854
,0.663700
,2.082549
,3.733365
,3.716411
,3.325100
,0.704518
,0.933907
,-0.722074
,-0.338643
,1.818228
,2.562077
,1.061076
,-1.128111
,-1.324018
,0.824299
,-0.330245
,-1.420207
,-0.814687
,-0.177065
,-0.455231
,-0.524718
,-0.234386
,0.730328
,0.478487
,-0.949402
,-1.741831
,-1.490028
,-0.563794
,0.855464
,0.677701
,0.173067
,-0.872229
,-0.955248
,-2.566136
,-2.904984
,0.136666
,1.649555
,0.668802
,-2.285448
,-1.376004
,-1.646915
,-0.673784
,0.620494
,2.216390
,2.660661
,0.531316
,0.593179
,0.358938
,1.159718
,-0.554744
,-0.549992
,0.561775
,0.835888
,0.730363
,-0.045005
,-1.475549
,-1.232844
,0.160657
,0.472009
,-0.108754
,-0.585429
,-1.080184
,-1.897560
,-2.056338
,-2.156136
,-0.714212
,0.740211
,1.890510
,1.230750
,-0.450925
,-2.277221
,-2.871927
,-3.833401
,-1.829664
,1.548020
,3.426621
,1.491492
,0.355503
,-2.067828
,-2.545161
,-2.853958
,-1.355950
,-0.328950
,-0.061013
,0.005606
,0.271399
,-1.851730
,-3.079561
,-2.678450
,-2.080111
,-2.217991
,-0.533396
,1.358202
,0.326902
,-0.712459
,-1.281423
,-1.729458
,-2.342138
,-2.513296
,-0.652543
,0.814721
,0.279215
,0.964881
,0.198570
,-0.855477
,-0.360848
,-0.726748
,-1.350821
,-0.294672
,-0.058068
,0.112120
,-1.256318
,-2.636194
,-2.363257
,-1.117000
,-1.081814
,-1.491655
,-1.816356
,0.620957
,-0.309730
,-0.883028
,-0.352842
,-0.427522
,-0.983398
,-1.258002
,-0.468894
,0.338469
,-0.037808
,-0.841928
,-0.695285
,-2.274615
,-3.355489
,-3.163717
,-1.538927
,-0.747062
,-1.250044
,-1.888636
,-2.284238
,-4.439872
,-4.422664
,-3.735224
,-1.437794
,-0.388748
,-1.377853
,-2.543614
,-3.392749
,-3.807670
,-2.455241
,-1.834620
,-0.004942
,-0.484990
,-1.259536
,-1.746897
,-1.308062
,-2.017714
,-1.354109
,-1.223886
,-0.581708
,-0.484188
,-0.236670
,0.087128
,-1.436817
,-2.545604
,-2.732560
,-1.906005
,-1.455067
,-0.293355
,0.068279
,-1.196724
,-2.077280
,-1.062009
,-1.456171
,-0.336422
,0.218742
,-0.239382
,0.256530
,2.250116
,1.452802
,0.493081
,-0.162748
,-1.741501
,-2.341983
,-1.061354
,-2.435824
,-0.082615
,2.032926
,1.050293
,-0.419698
,-2.109216
,-2.103551
,1.003683
,-0.425803
,-1.019484
,0.042275
,1.440864
,2.797700
,2.141265
,1.624485
,1.704900
,0.533377
,-1.248934
,-1.927466
,0.508942
,2.194260
,2.152369
,3.062129
,1.560677
,1.211941
,-0.255355
,-0.904912
,-0.638417
,1.327262
,1.948009
,3.170586
,0.440545
,1.719383
,2.321827
,0.921502
,0.461541
,0.342703
,0.317640
,1.626175
,1.494493
,1.846287
,2.540264
,3.345914
,1.895510
,-0.057032
,-1.364276
,-0.082315
,1.785164
,1.846081
,1.170277
,1.916280
,-1.051924
,-2.681086
,-2.066298
,-0.980254};

float Scales[16]={1.36173
,1.28378
,1.37797
,1.28988
,1.33730
,1.25931
,1.42505
,1.19684
,1.35117
,1.27950
,1.20000
,1.46266
,1.30850
,1.32497
,1.47485
,1.33941};

float biases[16]={0.07684
,-0.01368
,0.01770
,0.01731
,0.02869
,0.00563
,-0.01931
,0.00113
,0.03874
,0.03872
,0.01959
,0.07693
,0.01690
,-0.00444
,0.04694
,0.02286};

float rollMean[16]={0.56324
,-0.00365
,0.11290
,-0.33833
,-0.35387
,-0.04606
,-0.55512
,-0.20222
,0.11831
,0.28026
,0.21476
,0.11185
,0.64522
,0.09048
,-0.28853
,0.30358};

float rollVariance[16]={0.38022
,0.27990
,0.40106
,0.28602
,0.39922
,0.35745
,0.27959
,0.29682
,0.31133
,0.32366
,0.23125
,0.38333
,0.43514
,0.34027
,0.45280
,0.31084};

int main(){
    const int inw = 8;
    const int inh = 8;
    const int inch = 16;
    

    float *src = new float[inw * inh * inch];
    float *dest = new float[inw * inh * inch];

    for(int i=0; i<inw * inh * inch; i++){
        src[i] = a[i];
    }
    
    int64 st = cvGetTickCount();

    //for(int i = 0; i < 10; i++){
    BatchNormInplace(src, inw, inh, inch, Scales, rollMean, rollVariance, biases, 1e-5);
    //}
    
    double duration = (cv::getTickCount() - st) / cv::getTickFrequency() * 100;

    for(int i = 0; i < inh * inw * inch ; i++){
        bool flag = cmp(src[i], c[i]);
        if(flag == false){
            printf("WA: %d\n", i);
            printf("Expected: %.4f, ConvOutput: %.4f\n", c[i], dest[i]);
        }
    }

    printf("Time: %.5f\n", duration);

    free(src);

    return 0;
}